﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_Login.aspx.cs" Inherits="Admin_Admin_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>后台管理登录</title>
    <link href="Css/Admin_Login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function SetFocus() {
            var obj = document.getElementById("AdminUserName");
            if (obj.value == "") {
                obj.focus();
            }
            refreshCode();
        }
        var _href_ = (top.location.href).toLowerCase();
        if (_href_.indexOf("admin_index") > 0) { top.location.href = "Admin_Login.aspx" };
        function refreshCode() {
            document.getElementById("ImgCheckCode").innerHTML = "<img alt='验证码' title='看不清楚，换一个验证码' src='CheckCode.aspx?Rnd=" + Math.random() + "'/>";
        }
    </script>
</head>

<body onload="SetFocus();">
    <form id="form1" runat="server">
       <div class="login">
       <div class="form-block">
	<div class="input">
                <div class="inputbag user">	
                 <div class="inputlabel">用&nbsp;&nbsp;&nbsp;&nbsp;户：</div>
                 <div><asp:TextBox ID="AdminUserName" runat="server" CssClass="inputbox" MaxLength="16" /></div>
                </div>
                <div class="inputbag keys">
                 <div class="inputlabel">密&nbsp;&nbsp;&nbsp;&nbsp;码：</div>
                 <div><asp:TextBox ID="AdminPassword" runat="server" CssClass="inputbox" TextMode="Password" MaxLength="16"/></div>
                </div>
                <div class="inputbag code">
                 <div class="inputlabel">验证码：</div>
                 <div><asp:TextBox ID="CheckCode" runat="server" CssClass="inputbox" MaxLength="6" /></div>
			<div id="ImgCheckCode" class="inputcode" onclick="javascript:refreshCode();"></div>
                </div>
		<div class="inputbag btm">
			<asp:Button CssClass="btm1" ID="LoginSubmit" OnMouseOver="this.className='btm2'" OnMouseOut="this.className='btm1'" OnClick="LoginSubmit_Click1" runat="server"  /><br />
			<asp:Label ID="err_tips" runat="server" ForeColor="red" />
                </div>
	</div>
	<div class="back1" onMouseOver="this.className='back2'" onMouseOut="this.className='back1'"><a href="../"></a></div>
       </div>
       </div>
    </form>
</body>
</html>